/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author MrChinh
 */
public class ConnectDB {
    public Connection getConnect(){
        Connection conn = null;
        try {
            Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver.class.getName());

            conn = DriverManager.getConnection("jdbc:sqlserver://lab2_server\\sql2008;databaseName=RecruitmentProcessSystem ; user=sa; password=fat123456");

           // conn = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=RecruitmentProcessSystem; user=sa; password=1234567");

        } catch (Exception e) {
        }
        return conn;
    }
}
